<?php
	$file	= _POST('file');
	
	if(!is_file("file/doc/$file")){
		getMesErr("File này không có trên hệ thống");
		exit();
	}
	$fsize = filesize("../media/product/images/base/$file");
	header("Last-Modified: " . gmdate("D, d M Y H:i:s") . " GMT");  
	header("Content-type: application/octet-stream'");
	header("Content-disposition: filename=\"$file\"");
	ob_clean();
	flush(); 
	readfile("../media/product/images/base/$file");
	
